<template>
	<view class="container">
		<view class="item">
			<view class="itemImg">
				<image :src="imgUrl" mode=""></image>
			</view>
			<view class="itemInfo">
				<view class="itemTitle">
					<text class="name">{{name}}</text>
				</view>
				<view class="address" >
					<view>{{address}}</view>
					<view style="margin-right: 20rpx;">{{time}}</view>
				</view>
			</view>
		</view>
		<u-gap height="1" bg-color="#ccc"></u-gap>
		<!-- 间隔槽 -->
	</view>
</template>

<script>
	export default {
		props:{
			imgUrl:{
				type:String,
				default:""
			},
			name:{
				type:String,
				default:""
			},
			address:{
				type:String,
				default:""
			},
			time:{
				type:String,
				default:""
			},
			
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.container{
		.item{
			display: flex;
			padding: 20rpx 10rpx;
			.itemImg{
				image{
					width: 300rpx;
					height: 200rpx;
					border-radius: 10rpx;
					margin-right: 20rpx;
				}
			}
			.itemInfo{
				flex: 1;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				.name{
					font-size: 26rpx;
					font-weight: bold;
				}
				.address{
					font-size: 24rpx;
					color: #C0C0C0;
					display: flex;
					justify-content: space-between;
				}
			}
		}
	}
</style>
